package com.mmall.controller.portal;

import com.mmall.common.Const;
import com.mmall.common.ResponseCode;
import com.mmall.common.ServerResponse;
import com.mmall.pojo.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpSession;
import java.util.ArrayList;
import java.util.List;

@RequestMapping("/order/")
@Controller
public class OrderController {

    @RequestMapping("create.do")
    public ServerResponse create(HttpSession session,Integer shippingId){
        User user =(User)session.getAttribute(Const.CURRENT_USER);
        if (user==null){
            return ServerResponse.createByErrorCodeMessage(ResponseCode.NEDD_LOGIN.getCode(),ResponseCode.NEDD_LOGIN.getDesc());
        }
        //TODO
        return null;
    }
}
